<template>
  <div class="success">
    <div class="icon"><img src="../assets/img/success.png" alt="" /></div>
    <div class="title">操作成功</div>
    <button class="submit" @click="back">返回</button>
  </div>
</template>
<script setup>
import { useRouter, useRoute } from "vue-router";

const router = useRouter();
const route = useRoute();

const back = () => {
  router.push({
    path: "/number",
    query: {
      role: route.meta.role,
    },
  });
};
</script>